﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Đăng nhập hệ thống | VNT Việt Nam</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no" />
    <link href="css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        function setResulotion() {
            var width = screen.width;
            document.getElementById("mainvnt").style.width = width + 'px';
        }
    </script>
</head>
<body onload="setResulotion();">
    <form id="form1" runat="server">
    <asp:ScriptManager ID="sc" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="up1" runat="server">
        <ContentTemplate>
            <div id="mainvnt">
                <div class="panel panel-primary margin">
                    <div class="panel-heading">
                        <h3 class="panel-title" style="text-align: center;">
                            Đăng nhập hệ thống | VNT Việt Nam</h3>
                    </div>
                    <div class="panel-body">
                        <table width="100%">
                            <tr>
                                <td>
                                    <span style="margin-left: 5px;">Tài khoản</span><br />
                                    <asp:TextBox ID="txtTaiKhoan" runat="server" CssClass="form-control withall"></asp:TextBox>
                                    <asp:RequiredFieldValidator ValidationGroup="Them" ID="RequiredFieldValidator1" runat="server"
                                        ControlToValidate="txtTaiKhoan" ErrorMessage="Nhập tài khoản" Display="None"
                                        Text="*"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <span style="margin-left: 5px;">Mật khẩu</span><br />
                                    <asp:TextBox ID="txtMatKhau" TextMode="Password" runat="server" CssClass="form-control withall"></asp:TextBox>
                                    <asp:RequiredFieldValidator ValidationGroup="Them" ID="RequiredFieldValidator2" runat="server"
                                        ControlToValidate="txtMatKhau" ErrorMessage="Nhập mật khẩu" Display="None" Text="*"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Button ID="btnLogin" ValidationGroup="Them" runat="server" Style="margin-left: 5px;"
                                        Text="Đăng nhập" CssClass="btn btn-primary" OnClick="btnLogin_Click" />
                                    <asp:Button ID="btnCancel" runat="server" Text="Hủy bỏ" CssClass="btn btn-warning"
                                        OnClick="btnCancel_Click" />
                                </td>
                            </tr>
                        </table>
                        <asp:ValidationSummary ID="ValidationSummary1" HeaderText="Bạn phải nhập các trường sau:"
                            ShowMessageBox="true" ValidationGroup="Them" ShowSummary="false" EnableClientScript="true"
                            runat="server" />
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
